Class GenericMultiHeader

Summary

Fully Qualified Name: Laminas\Http\Header\GenericMultiHeader
Extends: GenericHeader
Implements: MultipleHeaderInterface

Description

Methods

Name Description Defined By
__construct() Constructor GenericHeader
fromString() GenericMultiHeader
getFieldName() Retrieve header field name GenericHeader
getFieldValue() Retrieve header field value GenericHeader
setFieldName() Set header field name GenericHeader
setFieldValue() Set header field value GenericHeader
splitHeaderLine() Splits the header line in `name` and `value` parts. GenericHeader
toString() Cast to string as a well formed HTTP header line GenericHeader
toStringMultipleHeaders() GenericMultiHeader

Method Details

__construct()

Constructor

Parameter Name Type Description
$fieldName null|string
$fieldValue null|string

Returns:

fromString()

Parameter Name Type Description
$headerLine

Returns: void

getFieldName()

Retrieve header field name

Returns: string

getFieldValue()

Retrieve header field value

Returns: string

setFieldName()

Set header field name

Parameter Name Type Description
$fieldName string

Returns: $this

setFieldValue()

Set header field value

Parameter Name Type Description
$fieldValue string

Returns: $this

splitHeaderLine()

Splits the header line in `name` and `value` parts.

Parameter Name Type Description
$headerLine string

Returns: string[] `name` in the first index and `value` in the second.

toString()

Cast to string as a well formed HTTP header line

Returns in form of "NAME: VALUE\r\n"

Returns: string

toStringMultipleHeaders()

Parameter Name Type Description
$headers

Returns: void

Top